Skip to content

Guard workspace primary freshness#610

Merged
chubes4 merged 1 commit into
mainfrom
fix/primary-freshness-guard
Jun 8, 2026
Merged

Guard workspace primary freshness#610
chubes4 merged 1 commit into
mainfrom
fix/primary-freshness-guard

Conversation

@chubes4

@chubes4 chubes4 commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Refuse duplicate same-remote primary clones by default, with reuse/refresh/worktree guidance.
  • Add explicit allow_duplicate_remote / --allow-duplicate-remote for intentional release/proof primary checkouts.
  • Surface primary freshness in workspace list/show/worktree/hygiene output using local refs without fetching.
  • Roll back newly-created local branches when stale worktree creation is rejected.
  • Update generated AGENTS guidance and smoke coverage for duplicate clone and stale primary behavior.

Testing

  • php tests/smoke-workspace-clone-ux.php
  • php tests/smoke-workspace-hygiene-report.php
  • php tests/smoke-worktree-default-branch-guard.php
  • php tests/smoke-workspace-alias-tools.php
  • php tests/smoke-workspace-tool-transcript-contract.php
  • PHP syntax checks for edited files
  • git diff --check

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Investigated the stale-primary workflow, drafted the implementation and smoke coverage, ran iterative review passes, and verified targeted tests. Chris remains responsible for review and merge.

@homeboy-ci

homeboy-ci Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine-code

Audit

audit — passed

  • audit — 27 finding(s)
  • Total: 27 finding(s)

Deep dive: homeboy audit data-machine-code --changed-since d53e873

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-audit-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-audit-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/27137272112
Tooling versions
  • Homeboy CLI: homeboy 0.222.17+3cd6862
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 0f23c5ed
  • Action: unknown@unknown

@chubes4 chubes4 merged commit 52f5657 into main Jun 8, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant